import {Link, Static,FontIcon,Box} from '../components'

//
// type TitlePropsType = {
//     title: string,
//     href?: string,
//     marginBottom?: string,
// }

const Title = ({title, href,marginBottom}) => (
    <Box marginBottom={marginBottom || '1rem'}>
        <Static label={title} fontSize='1.2rem' color='#5c5d5d' fontWeight='bolder' style={{marginRight: '1rem'}}/>
        {href && <FontIcon icon='jiantouarrowhead7' color='#c1c1c1' fontSize='.75rem'/>}
        {href && <Link href={href} label='返回' fontSize='.75rem' color='#c1c1c1'/>}
    </Box>
)

export default Title